package com.nulldev.util.internal.android_compat.atomics.impl.stubs;

import com.nulldev.util.data.Variables;
import com.nulldev.util.internal.android_compat.atomics.IPsuedoAtomic;

public class FakeAtomicLong implements IPsuedoAtomic<Long> {

	private volatile long val;

	@Override
	public void lazySetValue(Long val) {
		this.val = Variables.requireNonNullObject(val, "val");
	}

	@Override
	public void setValue(Long val) {
		this.val = Variables.requireNonNullObject(val, "val");
	}

	@Override
	public Long getValue() {
		return this.val;
	}

}
